package com.jzo2o.market.controller.Consumer;

import com.jzo2o.market.model.dto.response.CouponInfoResDTO;
import com.jzo2o.market.service.ICouponService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author LeeC
 * @description
 * @date 2025/2/12
 * @PACKAGE_NAME com.jzo2o.market.controller.Consumer
 */
@RestController("marketConsumerCouponController")
@RequestMapping("/consumer/coupon")
@Api(tags = "用户端 - 优惠券")
public class ConsumerCouponController {
    @Resource
    private ICouponService CouponService;
    @GetMapping("/my")
    @ApiOperation("我的优惠券列表")
    public List<CouponInfoResDTO> my(Long status, Long lastId) {
        return CouponService.my(status, lastId);
    }
}
